full_factorial_coded Subroutine

public subroutine full_factorial_coded(vars, tbl)

Computes a full-factorial design in coded variables on the range [-1, +1]. Each factor with L levels is assigned L evenly spaced values from -1 to +1 (inclusive). A factor with a single level is assigned a value of 0. For a 2-level factor, the levels are -1 and +1.

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: vars(:)

An M-element array containing the M factors to study. Each of the M entries to the array is expected to contain the number of levels for that particular factor to explore. This value must be greater than or equal to 1.

real(kind=real64), intent(out) :: tbl(:,:)

A table where the design will be written. Use get_full_factorial_matrix_size to determine the appropriate table size.